vpnc: fix IPv6-triggered inoperability
authorDaniel Gimpelevich <[email protected]>
Sat, 9 Mar 2019 11:17:47 +0000 (03:17 -0800)
committerDaniel Gimpelevich <[email protected]>
Sat, 9 Mar 2019 11:17:47 +0000 (03:17 -0800)
When the server hostname resolved to both IPv4 and IPv6 addresses,
connecting would fail with nothing in syslog. This corrects that oversight.

Signed-off-by: Daniel Gimpelevich <[email protected]>
net/vpnc/Makefile
net/vpnc/files/vpnc.sh

index ea7eb595d5f42ac237321e3ee899f1d0e99aedf0..75900f33c437a4946a0bb6b446c4fcd62b0f458e 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=vpnc
 PKG_REV:=550
 PKG_VERSION:=0.5.3.r$(PKG_REV)
-PKG_RELEASE:=8
+PKG_RELEASE:=9
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://svn.unix-ag.uni-kl.de/vpnc/trunk/
index bc3f912b36c83ce5683f9f1daed1ddb4697fe24c..d7980ca5264cdae40a15badf489d21f430304115 100755 (executable)
@@ -42,7 +42,7 @@ proto_vpnc_setup() {
 
        logger -t vpnc "initializing..."
        serv_addr=
-       for ip in $(resolveip -t 10 "$server"); do
+       for ip in $(resolveip -4t 10 "$server"); do
                ( proto_add_host_dependency "$config" "$ip" $interface )
                serv_addr=1
        done